const chalk = require('chalk')
const { log } = console

// 花里胡哨的带颜色的输出
module.exports = {
  clg: log,
  log: str => log(chalk.gray(str)),
  info: str => log(chalk.cyan(str)),
  warn: str => log(chalk.yellow(str)),
  success: str => log(chalk.green(str)),
  error: (str, reason) => log(chalk.red(str), chalk.magentaBright(reason))
}